﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Master
{
    /**
     * DirectionData tracks the orientation and direction of a specific car.
     * The DirectionData object should be instantiated before the car has started taking a turn, so that the original Orientation is saved in the new object.
     * */
    public class DirectionData
    {
        /*************
         * VARIABLES *
         *************/
        private readonly int orientation;
        private readonly Direction direction;

        /********************
         * PUBLIC FUNCTIONS *
         ********************/
        public DirectionData(int orientation, Direction direction)
        {
            this.orientation = orientation;
            this.direction = direction;
        }

        public int getOrientation()
        {
            return orientation;
        }

        public Direction getDirection()
        {
            return direction;
        }
    }
}
